/**
 * 
 */
package tracksystem;

import java.util.List;

import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyService;

/**
 * @author h4oxer
 *
 */
public class TrackManager {
	private List<Activity> activities;
	
	public void saveSchoolAct(SchoolActivity sa){
		Objectify ofy = ObjectifyService.begin();
		ofy.put(sa);
	}
	
	public void saveOtherAct(OtherActivity oa){
		Objectify ofy = ObjectifyService.begin();
		ofy.put(oa);
	}
	
	public List<Activity> getAllActivities(){
		Objectify ofy = ObjectifyService.begin();
		activities = ofy.query(Activity.class).list();
		
		return activities;
	}

}
